package prototype;

public class PersonOrder implements IOrder {

    private int number;
    private String name;

    private int getNumber() {
        return number;
    }

    private void setNumber(int number) {
        this.number = number;
    }

    private String getName() {
        return name;
    }

    private void setName(String name) {
        this.name = name;
    }

    @Override
    public int getOrderNumber() {
        return getNumber();
    }

    @Override
    public void setOrderNumber(int number) {
        setNumber(number);
    }

    @Override
    public String getOrderName() {
        return getName();
    }

    @Override
    public void setOrderName(String name) {
        setName(name);
    }

    @Override
    public IPrototype cloneOrder() {
        PersonOrder order = new PersonOrder();
        order.setOrderNumber(number);
        order.setName(name);
        return order;
    }
}
